package javaapplication1;

import java.awt.Graphics;

public class Boundary implements Drawable{
    private int x;
    private int y;
    private int width;
    private int height;
    
    public Boundary(int width, int height){
        x = 0;
        y = 0;
        this.width = width;
        this.height = height;
    }

    @Override
    public void dibujar(Graphics g) {
        g.drawRect(x, y, width, height);
    }

    @Override
    public void aniadir(Drawable drawable) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void eliminar(Drawable drawable) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Drawable obtenerHijo(int pos) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void accept(Visitor visitor) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
